package com.ruoyi.cderp.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 库存数量调整单明细对象 tbl_stock_num_adjust_sheet_detail
 *
 * @author ruoyi
 * @date 2025-05-08
 */
public class TblStockNumAdjustSheetDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String id;

    /** 单据ID */
    @Excel(name = "单据ID")
    private String sheetId;

    /** 商品ID */
    @Excel(name = "商品ID")
    private String productId;

    // 商品信息
    private BaseDataProduct baseDataProduct;

    /** 调整前库存数量 */
    @Excel(name = "调整前库存数量")
    private Long oriStockNum;

    /** 调整后库存数量 */
    @Excel(name = "调整后库存数量")
    private Long stockNum;

    // 商品成本价
    @Excel(name = "商品成本价")
    private BigDecimal price;

    /** 备注 */
    @Excel(name = "备注")
    private String description;

    /** 排序 */
    @Excel(name = "排序")
    private Long orderNo;

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BaseDataProduct getBaseDataProduct() {
        return baseDataProduct;
    }

    public void setBaseDataProduct(BaseDataProduct baseDataProduct) {
        this.baseDataProduct = baseDataProduct;
    }

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setSheetId(String sheetId)
    {
        this.sheetId = sheetId;
    }

    public String getSheetId()
    {
        return sheetId;
    }
    public void setProductId(String productId)
    {
        this.productId = productId;
    }

    public String getProductId()
    {
        return productId;
    }
    public void setOriStockNum(Long oriStockNum)
    {
        this.oriStockNum = oriStockNum;
    }

    public Long getOriStockNum()
    {
        return oriStockNum;
    }
    public void setStockNum(Long stockNum)
    {
        this.stockNum = stockNum;
    }

    public Long getStockNum()
    {
        return stockNum;
    }
    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }
    public void setOrderNo(Long orderNo)
    {
        this.orderNo = orderNo;
    }

    public Long getOrderNo()
    {
        return orderNo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("sheetId", getSheetId())
            .append("productId", getProductId())
            .append("oriStockNum", getOriStockNum())
            .append("stockNum", getStockNum())
            .append("description", getDescription())
            .append("orderNo", getOrderNo())
            .toString();
    }
}
